package ${basePackagePath}${tablePath}.entity;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import ${basePackagePath}utils.core.entity.BaseEntity;
/**
 * @description: ${remarks}  
 * @tableName:   ${tableName} 
 * @entityName:  ${entityName}
 * @author: 	 gjh
 * @history:	 1.0
 */
public class  ${entityName} extends BaseEntity {

<#list fieldList as field> 
	<#if (field.type =="bigint")> 
	/** ${field.comment} */
	private Long ${field.name};
 	</#if>
 	<#if (field.type =="datetime")> 
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date ${field.name};
 	</#if>
 	<#if (field.type =="varchar" || field.type == "char" || field.type == "longtext")>
	/** ${field.comment} */
	private String ${field.name};
 	</#if>
 	<#if (field.type =="int")> 
	/**  ${field.comment}  */
	private Integer ${field.name};
 	</#if>
 	<#if (field.type =="decimal")>
	/** ${field.comment} */
	private BigDecimal ${field.name};
 	</#if>
 	<#if (field.type =="double")> 
	/** ${field.comment} */
	private Double ${field.name};
 	</#if>
 	<#if (field.type =="date")> 
	/** ${field.comment} */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date ${field.name};
 	</#if>
</#list> 

<#-- 生成GET SET 方法-->

<#list fieldList as field> 
	<#if (field.type =="bigint")> 
	/** ${field.comment} */
	public void set${field.name?cap_first}(Long ${field.name}) {
		this.${field.name} = ${field.name};
	}
	/** ${field.comment} */
	public Long get${field.name?cap_first}() {
		return ${field.name};
	}
 	</#if>
 	<#if (field.type =="datetime")> 
	/** ${field.comment} */
	public void set${field.name?cap_first}(Date ${field.name}) {
		this.${field.name} = ${field.name};
	}
	/** ${field.comment} */
	public Date get${field.name?cap_first}() {
		return ${field.name};
	}
 	</#if>
 	<#if (field.type =="varchar"  || field.type =="char" )>
	/** ${field.comment} */
	public void set${field.name?cap_first}(String ${field.name}) {
		this.${field.name} = ${field.name};
	}
	/** ${field.comment} */
	public String get${field.name?cap_first}() {
		return ${field.name};
	}
 	</#if>
 	<#if (field.type =="int")> 
	/** ${field.comment} */
	public void set${field.name?cap_first}(Integer ${field.name}) {
		this.${field.name} = ${field.name};
	}
	/** ${field.comment} */
	public Integer get${field.name?cap_first}() {
		return ${field.name};
	}
 	</#if>
 	<#if (field.type =="decimal")> 
	/** ${field.comment} */
	public void set${field.name?cap_first}(BigDecimal ${field.name}) {
		this.${field.name} = ${field.name};
	}
	/** ${field.comment} */
	public BigDecimal get${field.name?cap_first}() {
		return ${field.name};
	}
 	</#if>
 	<#if (field.type =="double")> 
	/** ${field.comment} */
	public void set${field.name?cap_first}(Double ${field.name}) {
		this.${field.name} = ${field.name};
	}
	/** ${field.comment} */
	public Double get${field.name?cap_first}() {
		return ${field.name};
	}
 	</#if>
 	<#if (field.type =="date")> 
	public void set${field.name?cap_first}(Date ${field.name}) {
		this.${field.name} = ${field.name};
	}
	/** ${field.comment} */
	public Date get${field.name?cap_first}() {
		return ${field.name};
	}
 	</#if>
</#list> 
}
